<template lang="html">
	<div>
		<!-- 轮播图 -->
		<carousel v-bind:listshuju="lunbotu_list"></carousel>
		<!-- 公告 -->
		<notice v-bind:gonggao="gonggao_list"></notice>
		<!-- 大分类 -->
		<classification ></classification>
		<!-- 名品展示 -->
		<product v-bind:putonggoods="putonggoods_list"></product>
		<!-- 精品展示 -->
		<boutique v-bind:boutiqueshuju="pinpai_list"></boutique>
		<!-- 积分专区 -->
		<integral v-bind:goods="integralgoods"></integral>
	    <foo-ter></foo-ter>
	</div> 
</template>
<script type="text/javascript">
	import boutique from "../public/Boutique/Boutique.vue";
	import carousel from "../public/Carousel/Carousel.vue";
	import classification from "../public/classification/classification.vue";
	import integral from "../public/integral/integral.vue";
	import notice from "../public/Notice/Notice.vue";
	import product from "../public/product/product.vue";
	import footer from "../public/footer/index.vue";
	export default {
	  	name: 'HelloWorld',
	  	data () {
	    	return {
	      		integralgoods: [],
	      		gonggao_list:[],
	      		lunbotu_list:[],
	      		pinpai_list:[],
	      		putonggoods_list:[]
	    	}
	  	},
	  	created:function(){
			var conent = this;
		    let _url = "/index.php?g=app&m=shopping&a=index_data_post";
		    conent.$http.post(_url).then(function(data){
		        if(data.data.status== "1"){
		        	conent.integralgoods=data.data.data.jifengoods_list;
		        	conent.gonggao_list=data.data.data.gonggao_list;

		        	conent.lunbotu_list=data.data.data.lunbotu_list;
		        	conent.pinpai_list=data.data.data.pinpai_list;
		        	conent.putonggoods_list=data.data.data.putonggoods_list;
		        }else {
		        	
		        }
		    },function(response){
		        conent.$toast(response);
		    })
		},
	  	components:{
  			'boutique':boutique,
  			'carousel':carousel,
  			'classification':classification,
  			'integral':integral,
  			'notice':notice,
  			'product':product,
  			'foo-ter':footer
	  	}
	}
</script>
<style type="text/css" lang="less">
	@import '../../assets/less/index.less';
	.Signin_box{

	}
</style>